package com.brillilab.service.core.crm.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.brillilab.dao.mapper.crm.PublicMethodRelateReagentMapper;
import com.brillilab.domain.crm.kitRelateMethod.po.PublicMethodRelateReagent;
import com.brillilab.service.core.crm.IKitRelateMethodService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wuzhiyu
 * @Title: KitRelateMethodServiceImpl
 * @ProjectName brill_lab
 * @Description: TODO
 * @date 2019/5/2910:02
 */
@Service
@Transactional
public class KitRelateMethodServiceImpl implements IKitRelateMethodService {
    @Resource
    private PublicMethodRelateReagentMapper publicMethodRelateReagentMapper;

    @Override
    public List<PublicMethodRelateReagent> getRelateReagentListByMethodId(Long methodId) {
        LambdaQueryWrapper<PublicMethodRelateReagent> query = new LambdaQueryWrapper<>();
        query.eq(PublicMethodRelateReagent::getMethodId, methodId);
        return publicMethodRelateReagentMapper.selectList(query);
    }


}
